/*
通用指针的使用
*/

#include <stdio.h>
//自定义函数实现打印每个字节的数据
void show(void* pi,int len){
	int i = 0;
	for(i = 0;i < len;i++){
			printf("%#x ",*(unsigned char*)pi++);
		}
	printf("\n");
	}
int main (){
	int num = 0x12345678;
	show(&num,4);
	short s = 0x1234;
	show(&s,2);
		return 0;
	}
